package com.lianjinsu.shop.service;

import com.lianjinsu.shop.entity.Shop;
import org.apache.commons.lang3.StringUtils;

import java.util.Collection;
import java.util.List;
import java.util.Set;

public interface ShopService {

    boolean insertGoods(Shop shop);

    boolean removeById(int id);

    boolean increaseStock(int id, int stock);

    boolean hotOrNot(int id, boolean hotOrNot);

    List<Shop> searchByType(String type);

    Set<String> allTags();

    List<Shop> selectByTags(Collection<String> tags);

    List<Shop> hotList();

    List<Shop> shopList(String search);

    default List<Shop> shopList() {
        return shopList(StringUtils.EMPTY);
    }

    Shop shopDetail(int shopId);
}
